Serde ignored
Find out about keys that are ignored when deserializing data. This crate
provides a wrapper that works with any existing Serde Deserializer
and invokes
a callback on every ignored field.
You can use this to warn users about extraneous keys in a config file, for example.
Note that if you want unrecognized fields to be an error, consider using the
#[serde(deny_unknown_fields)]
attribute instead.
[]
= "1.0"
= "0.0.4"
extern crate serde_derive;
extern crate serde;
extern crate serde_json;
extern crate serde_ignored;
use ;
License
This crate is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.